<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">

<head>
  <meta charset="UTF-8">
  <title>后台管理系统-WeiYiAdmin</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../static/css/font.css">
  <link rel="stylesheet" href="../static/css/weadmin.css">
  <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.5.1.min.js"></script>
  <script>
    $(function () {
      $.get({
        url: "/index/statistic",
        success: function (data) {
          $("#statistic").html(data)
        },
        async: false
      })
    })
  </script>
</head>

<body>
<div class="weadmin-nav">
			<span class="layui-breadcrumb">
        <a href="">首页</a>
      </span>
  <a class="layui-btn layui-btn-sm" style="margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
    <i class="layui-icon layui-icon-refresh"></i></a>
</div>
  <div class="weadmin-body">
    <blockquote class="layui-elem-quote">hello</blockquote>
    <div class="layui-fluid" style="overflow: hidden;">
      <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">
          <div class="layui-card">
            <div class="layui-card-header"></div>
            <div class="layui-card-body">
              <div class="layui-carousel weadmin-shortcut" lay-filter="shortcut" lay-indicator="inside" lay-arrow="none"
                style="width: 100%; height: 280px;">
                <div carousel-item="">
                  <ul class="layui-row layui-col-space10 layui-this">
                    <li class="layui-col-xs3">
                      
                        <i class="layui-icon">&#xe705;</i>
                        <cite>阅读</cite>
                        <p><span>在这里查看最详细的信息</span></p>
                      
                    </li>
                    <li class="layui-col-xs3">
                        <i class="layui-icon">&#xe735;</i>
                        <cite>当前热门</cite>
                        <p><span>点击查看</span></p>
                      
                    </li>
                    <li class="layui-col-xs3">
                        <i class="layui-icon">&#xe606;</i>
                        <cite>评论</cite>
                        <p><span>随时听取您的意见</span></p>
                      </a>
                    </li>
                    <li class="layui-col-xs3">
                        <i class="layui-icon">&#xe6c6;</i>
                        <cite>点赞</cite>
                        <p><span>喜欢的话就点个赞吧~</span></p>
                      </a>
                    </li>


                  </ul>
                  <ul class="layui-row layui-col-space10">
                    <li class="layui-col-xs3">
                        <i class="layui-icon">&#xe600;</i>
                        <cite>收藏</cite>
                        <p><span>你喜欢的都在这里</span></p>
                      </a>
                    </li>

                    <li class="layui-col-xs3">
                        <i class="layui-icon">&#xe62c;</i>
                        <cite>目前已更新</cite>
                      </a>
                    </li>
                    
                    <li class="layui-col-xs3">
                      <a href="javascript:;" target="_blank">
                        <i class="layui-icon layui-icon-set"></i>
                        <cite>设置</cite>
                      </a>
                    </li>

                  </ul>

                </div>
                <div class="layui-carousel-ind">
                  <ul>
                    <li class="layui-this"></li>
                    <li></li>
                  </ul>
                </div>
              </div>

            </div>
          </div>
        </div>
        <div class="layui-col-md4">
          <div class="layui-card">
            <div class="layui-card-header">
              推广
              <i class="layui-icon" style="color: #FF5722;">&#xe756;</i>
            </div>
            <div class="layui-card-body layui-text weadmin-text">
              <p>招募200名小白学习视频剪辑</p>
            </div>
            <div class="layui-card-body layui-text weadmin-text">
              <p>震惊，舍友c++什么时候这么强了</p>
            </div>
            <div class="layui-card-body layui-text weadmin-text">
              <p>Link Start!  LoveLive再次起航！</p>
            </div>
            <div class="layui-card-body layui-text weadmin-text">
              <p>像月亮的排球</p>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="layui-col-lg12 layui-collapse" style="border: none;">
      <div class="layui-col-lg6 layui-col-md12">


        <!--统计信息展示-->
        <fieldset class="layui-elem-field" style="padding: 5px;">
          <!--WeAdmin公告-->
          <div class="layui-card">
            <div class="layui-card-header layui-elem-quote">目前可以公开的信息</div>
            <div class="layui-card-body">
              <div class="layui-carousel weadmin-notice" lay-filter="notice" lay-indicator="inside" lay-arrow="none"
                style="width: 100%; height: 280px;">
                <div carousel-item="">
                  <div class="">
                    <a href="http://cet.neea.edu.cn/" target="_blank" class="layui-bg-red">2020年12月12日
                      四六级考试</a>
                  </div>
                  <div class="">
                    <a href="http://ntce.neea.edu.cn/" target="_blank" class="layui-bg-blue">2020年中小学教师资格考试报名于
                      12月10日正式开始</a>
                  </div>
                  <div class="">
                    <a href="http://bm.scs.gov.cn/pp/gkweb/core/web/ui/business/home/gkhome.html" target="_blank" class="layui-bg-green">
                      国家公务员考试报考指南</a>
                  </div>

                </div>
                <div class="layui-carousel-ind">
                  <ul>
                    <li class="layui-this"></li>
                    <li></li>
                  </ul>
                </div>
                <!--<button class="layui-icon layui-carousel-arrow" lay-type="sub"></button>
									<button class="layui-icon layui-carousel-arrow" lay-type="add"></button>-->
              </div>

            </div>
          </div>
          <!--<legend>信息统计</legend>-->
          <blockquote class="layui-elem-quote font16">信息统计</blockquote>
          <div class="" th:if="${session.sta}!=null">
            <table class="layui-table" lay-even id="statistic" th:fragment="statistic">
              <thead>
                <tr>
                  <th>统计</th>
                  <th>用户</th>
                  <th>管理员</th>
                  <th>订单量</th>
                  <th>产品库</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>总数</td>
                  <td th:text="${session.sta.memberNum}"></td>
                  <td th:text="${session.sta.adminNum}"></td>
                  <td th:text="${session.sta.orderNum}"></td>
                  <td th:text="${session.sta.productNum}"></td>
                </tr>
                <tr>
                  <td>今日</td>
                  <td th:text="${session.sta.memberTodayNum}"></td>
                  <td th:text="${session.sta.adminTodayNum}"></td>
                  <td th:text="${session.sta.orderTodayNum}"></td>
                  <td th:text="${session.sta.productTodayNum}"></td>
                </tr>
                <tr>
                  <td>昨日</td>
                  <td th:text="${session.sta.memberYesNum}"></td>
                  <td th:text="${session.sta.adminYesNum}"></td>
                  <td th:text="${session.sta.orderYesNum}"></td>
                  <td th:text="${session.sta.productYesNum}"></td>
                </tr>
                <tr>
                  <td>本周</td>
                  <td th:text="${session.sta.memberWeekNum}"></td>
                  <td th:text="${session.sta.adminWeekNum}"></td>
                  <td th:text="${session.sta.orderWeekNum}"></td>
                  <td th:text="${session.sta.productWeekNum}"></td>
                </tr>
                <tr>
                  <td>本月</td>
                  <td th:text="${session.sta.memberMouthNum}"></td>
                  <td th:text="${session.sta.adminMouthNum}"></td>
                  <td th:text="${session.sta.orderMouthNum}"></td>
                  <td th:text="${session.sta.productMouthNum}"></td>
                </tr>
              </tbody>
            </table>
            <table class="layui-table">
              <thead>
                <tr>
                  <th colspan="2" scope="col">下次更新预告</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <th width="30%">川建国搬家日记</th>
                  <td><span id="lbServerName">2020年12月01日</span></td>
                </tr>
                <tr>
                  <td>久久不见</td>
                  <td>2020年12月03日</td>
                </tr>
                <tr>
                  <td>大国工程</td>
                  <td>2020年12月04日</td>
                </tr>
                <tr>
                  <td>咒术回战 </td>
                  <td>2020年12月15日</td>
                </tr>
                <tr>
                  <td>总之就是不谢 </td>
                  <td>2020年12月17日</td>
                </tr>
                <tr>
                  <td>小泉拉面 </td>
                  <td >2020年12月18日</td>
                </tr>
                <tr>
                  <td>上次更新时间 </td>
                  <td id="lastTime">7210分钟</td>
                </tr>
              </tbody>
            </table>
          </div>
        </fieldset>
      </div>
      <div class="layui-col-lg6 layui-col-md12">
        <fieldset class="layui-elem-field we-changelog" style="padding: 5px;">
          <blockquote class="layui-elem-quote font16">追番日志</blockquote>
          <ul class="layui-timeline" style="height: 729px; overflow-y: auto;">   
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis" style="color: #FF5722;">&#xe756;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>2020年更新</h3>
                  <span class="layui-badge-rim">2020-08-29</span>
                </div>
                <blockquote class="layui-elem-quote">
                  但见时光流似箭，岂知天道曲如弓，转眼间又到了每年更新的时候，十分感谢每位辛苦工作默默付出的工作人员。在今后的日子里，我们也会一如既往努力为大家带来精彩有趣的内容
                </blockquote>

                <ul>
                  <li>刀剑神域 爱丽丝篇 异界战争</li>
                  <li>全员恶棍</li>
                  <li>无能力者拉拉</li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis" style="color: #FF5722;">&#xe756;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>2019年更新</h3>
                  <span class="layui-badge-rim">2019-09-20</span>
                </div>
                <ul>
                  <li>Fate Stay Night</li>
                  <li>约p大作战 第四季</li>
                  <li>Avengers assamble ||</li>
                  <li>holy hulk 3</li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>2019年7月更新</h3>
                  <span class="layui-badge-rim">2019-07-18</span>
                </div>
                <ul>
                  <li>lovelive</li>
                  <li>找不到家的小明同学</li>
                  <li>卫宫家的晚饭</li>
                  <li>深夜食堂</li>
                  <li>舌尖上的中国 第六季</li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>2019年5月更新</h3>
                  <span class="layui-badge-rim">2019-05-15</span>
                </div>
                <ul>
                  <li>疯狗少年的天空</li>
                  <li>这个女孩很漂亮却交不到男朋友</li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>2019年4月更新</h3>
                  <span class="layui-badge-rim">2019-04-03</span>
                </div>
                <ul>
                  <li>龙族大电影</li>
                  <li>你的名字</li>
                  <li>伴我同行</li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>2019年2月更新</h3>
                  <span class="layui-badge-rim">2019-02-18</span>
                </div>
                <ul>
                  <li>君的名字</li>
                  <li>前任3</li>
                  <li>狂人日记大电影</li>
                  <li>雷雨第二季</li>
                  <li>程序员的内心独白</li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis" style="color: #FF5722;">&#xe756;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>2018年更新</h3>
                  <span class="layui-badge-rim">2018-10-05</span>
                </div>
                <blockquote class="layui-elem-quote">点击->
                  <a href="https://search.bilibili.com/all?keyword=%E5%90%8D%E4%BE%A6%E6%8E%A2%E6%9F%AF%E5%8D%97%20EPISODE%E2%80%9CONE%E2%80%9D%20%E5%8F%98%E5%B0%8F%E7%9A%84%E5%90%8D%E4%BE%A6%E6%8E%A2"
                    target="_blank">变小的名侦探</a>名柯二十周年纪念作品！青山老师送给各位粉丝的新年礼物：Episode "ONE"</blockquote>
                <ul>
                  <li>爱情公寓第六季</li>
                  <li>化蝶 番外篇</li>
                  <li>人生三味</li>
                  <li>科技测评小白同学 &nbsp;<i class="layui-icon"
                      style="font-size: 16px; color: #FF5722;">&#xe60c;</i></li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>2018年7月更新</h3>
                  <span class="layui-badge-rim">2018-07-01</span>
                </div>
                <ul>
                  <li>龙族2018修订版
                    <a href="https://baike.baidu.com/item/%E9%BE%99%E6%97%8F/2373856?fr=aladdin">点击了解详情</li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>2018年6月更新</h3>
                  <span class="layui-badge-rim">2018-06-01</span>
                </div>
                <ul>
                  <li>只有我不在的街道</li>
                  <li>无限剑制</li>
                  <li>我的总裁小宝贝</li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>2018年更新正式开始</h3>
                  <span class="layui-badge-rim">2018-01-01</span>
                </div>

              </div>
            </li>
          </ul>
        </fieldset>
      </div>
    </div>
    <div style="clear: both;overflow: hidden; margin-top: 10px;">
      <blockquote class="layui-elem-quote"></blockquote>
    </div>
  </div>
</body>
<script type="text/javascript" src="../lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript">
  layui.extend({
    admin: '{/}../static/js/admin',
  });
  layui.use(['jquery', 'element', 'util', 'admin', 'carousel'], function () {
    var element = layui.element,
      $ = layui.jquery,
      carousel = layui.carousel,
      util = layui.util,
      admin = layui.admin;
    //建造实例
    carousel.render({
      elem: '.weadmin-shortcut'
      , width: '100%' //设置容器宽度				
      , arrow: 'none' //始终显示箭头	
      , trigger: 'hover'
      , autoplay: false
    });

    carousel.render({
      elem: '.weadmin-notice'
      , width: '100%' //设置容器宽度				
      , arrow: 'none' //始终显示箭头	
      , trigger: 'hover'
      , autoplay: true
    });

    $(function () {
      setTimeAgo(2018, 0, 1, 13, 14, 0, '#firstTime');
      setTimeAgo(2020, 8, 29, 17, 0, 0, '#lastTime');
    });
    function setTimeAgo(y, M, d, H, m, s, id) {
      var str = util.timeAgo(new Date(y, M || 0, d || 1, H || 0, m || 0, s || 0));
      $(id).html(str);
      // console.log(str);
    };

    $('body').on('click', '.tabLink', function () {
      console.log('this', $(this)); //sy-log
      var url = $(this).attr('_href');
      console.log('url', url); //sy-log

      var title = $(this).find('cite').html();
      console.log('title', title); //sy-log

      // var index = $('.left-nav #nav li').index($(this));
      var index = parseInt($(this).attr('data-id'));

      admin.wframe.openFrame(url, title, index)

    })
  });
</script>

</html>